package com.pmpd.activity.rpc;

import com.pmpd.activity.bo.background.AppBo;
import com.pmpd.activity.rpc.fallback.ActivityAdminRpcFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * \* User: helei
 * \* Date: 06/06/18
 * \* Description:
 * \
 */
@FeignClient(name = "pmpd-admin-server", fallback = ActivityAdminRpcFallback.class)
public interface ActivityAdminRpc {

    @RequestMapping(value = "/rpc/background/pmpd-admin-server/v2/app/select/selectById", method = RequestMethod.GET)
    AppBo selectAppById(@RequestParam("id") String id);

}